package com.hanyxx.reflect;

/**
 * @author 菠菜饭团
 * @description: 奥特曼
 * @date 2020/12/25
 */
public class OuterMan {
    public String name;
    protected Integer age;
    String gender;
    private String power;

    public void hitMonster(){
        System.out.println("奥特曼打怪兽！");
    }
    public void hitMonster(String monsterName){
        System.out.println("奥特曼打"+monsterName+"！");
    }
    void eat(){
        System.out.println("奥特曼吃饭！");
    }
    protected void fly(){
        System.out.println("奥特曼飞走了！");
    }
    private void change(){
        System.out.println("奥特曼偷偷变身！");
    }

    public OuterMan() {
    }
    public OuterMan(String name, Integer age, String gender, String power) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.power = power;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public String getPower() {
        return power;
    }
    public void setPower(String power) {
        this.power = power;
    }
    @Override
    public String toString() {
        return "OuterMan{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", power='" + power + '\'' +
                '}';
    }
}
